import request from '@/utils/request'
// 查询月度进销存列表
export function selectDeadGoodsList(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/selectDeadGoodsList',
    method: 'get',
    params: query
  })
}
// 查询月度进销存列表
export function getUpdateTime(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/getUpdateTime',
    method: 'get',
    params: query
  })
}
// 查询月度进销存列表
export function definitionInventoryAgeRange(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/definitionInventoryAgeRange',
    method: 'get',
    params: query
  })
}
// 查询月度进销存列表
export function selectSkuLike(query) {
  return request({
    url: '/financial/BiPurchaseSaleStock/selectSkuLike',
    method: 'get',
    params: query
  })
}
//模糊匹配item查询列表
export function queryContentByKey(query) {
  return request({
    url: '/product/BiItemSaleDwd/queryContentByKey',
    method: 'get',
    params: query
  })
}
//汇总
export function inventoryAgeAllSum(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/inventoryAgeAllSum',
    method: 'get',
    params: query
  })
}

//汇总图
export function distributionDiagraAll(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/distributionDiagraAll',
    method: 'get',
    params: query
  })
}
// 查询库龄列表
export function inventoryAgeDetail(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/inventoryAgeDetail',
    method: 'get',
    params: query
  })
}
// 查询库龄列表
export function voList(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/voList',
    method: 'get',
    params: query
  })
}
// 查询库龄列表
export function listBiInventoryAgeDwd(query) {
  return request({
    url: '/financial/BiInventoryAgeDwd/list',
    method: 'get',
    params: query
  })
}

// 查询库龄详细
export function getBiInventoryAgeDwd(id) {
  return request({
    url: '/financial/BiInventoryAgeDwd/' + id,
    method: 'get'
  })
}

// 新增库龄
export function addBiInventoryAgeDwd(data) {
  return request({
    url: '/financial/BiInventoryAgeDwd',
    method: 'post',
    data: data
  })
}
// 新增库龄
export function synData(data) {
  return request({
    url: '/financial/BiInventoryAgeDwd/synData',
    method: 'post',
    data: data
  })
}

// 修改库龄
export function updateBiInventoryAgeDwd(data) {
  return request({
    url: '/financial/BiInventoryAgeDwd',
    method: 'put',
    data: data
  })
}

// 删除库龄
export function delBiInventoryAgeDwd(id) {
  return request({
    url: '/financial/BiInventoryAgeDwd/' + id,
    method: 'delete'
  })
}
